<?php
/*
require_once '/usr/share/pear/ezc/Base/base.php';
session_start();

//require_once '/usr/local/lib/php/ezc/Base/base.php';

function __autoload( $className )
{
        ezcBase::autoload( $className );
}
*/


define('PATH_EZC', '/usr/share/pear/');
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . PATH_EZC);

define('NDD_PATH', dirname( __FILE__ ));

session_start();

//default ezc bootstrap
require 'ezc/Base/ezc_bootstrap.php';

/**
 * @see bug : http://issues.ez.no/IssueView.php?Id=16868&
 */
//http://issues.ez.no/IssueView.php?Id=16868&
//$session = new ezcAuthenticationSession();
//$session->start();


// Add the class repository containing our application's classes. We store
// those in the /lib directory and the classes have the "hello" prefix.
ezcBase::addClassRepository( dirname( __FILE__ ).'/lib' );

// Configure the template system by telling it where to find templates, and
// where to put the compiled templates.
$tc = ezcTemplateConfiguration::getInstance();
$tc->templatePath = dirname( __FILE__ ) . '/templates';
$tc->compilePath = dirname( __FILE__ ) . '/cache';


?>